function [ res] = calculate_puzzle_number( s )
%CALCULATE_PUZZLE_NUMBER Summary of this function goes here
%   Detailed explanation goes here

    res = 1;
        
    for i=1:(length(s)-1)
        res = res + count_menores(s, i) * factorial(length(s)-i);
    end
end

